package com.xy.cloud.feign;

import com.xy.cloud.constant.ServiceNameConstants;
import com.xy.cloud.domain.R;
import com.xy.cloud.feign.factory.BackStageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId = "backstageService", value = ServiceNameConstants.XY_BACKSTAGE,fallbackFactory = BackStageFallbackFactory.class)
public interface BackStageService {

    @GetMapping(value = "/backstage/get")
    R<?> get();

    @PostMapping(value = "/account/save")
    R<?> save();

}
